#include <stdio.h>

int main() {
    int i = 0;
    int sum = 0;
    int ret = 1;
    for (i = 1; i <= 10; i++) {
        ret *= i;
        printf("%d!=%d\n", i, ret);
        sum += ret;
    }
    printf("1!+2!+....+10!=%d\n", sum);
    return 0;
}